home *** CD-ROM | disk | FTP | other *** search
/ Freelog 115 / FreelogNo115-MaiJuin2013.iso / Internet / Filezilla Server / FileZilla_Server-0_9_41.exe / source / interface / UsersDlg.h < prev    next >
C/C++ Source or Header  |  2011-11-06  |  3KB  |  107 lines

  1. // FileZilla Server - a Windows ftp server
  2.  
  3. // Copyright (C) 2002-2004 - Tim Kosse <tim.kosse@gmx.de>
  4.  
  5. // This program is free software; you can redistribute it and/or
  6. // modify it under the terms of the GNU General Public License
  7. // as published by the Free Software Foundation; either version 2
  8. // of the License, or (at your option) any later version.
  9.  
  10. // This program is distributed in the hope that it will be useful,
  11. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  13. // GNU General Public License for more details.
  14.  
  15. // You should have received a copy of the GNU General Public License
  16. // along with this program; if not, write to the Free Software
  17. // Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
  18.  
  19. #if !defined(AFX_USERSDLG_H__5348112C_F36E_42D1_B073_78272B897DDA__INCLUDED_)
  20. #define AFX_USERSDLG_H__5348112C_F36E_42D1_B073_78272B897DDA__INCLUDED_
  21.  
  22. #if _MSC_VER > 1000
  23. #pragma once
  24. #endif // _MSC_VER > 1000
  25. // UsersDlg.h : Header-Datei
  26. //
  27.  
  28. #include "..\Accounts.h"
  29.  
  30. class CUsersDlgGeneral;
  31. class CUsersDlgSpeedLimit;
  32. class CUsersDlgSharedFolders;
  33. class CUsersDlgIpFilter;
  34.  
  35. /////////////////////////////////////////////////////////////////////////////
  36. // Dialogfeld CUsersDlg
  37. class CUsersDlg : public CSAPrefsDialog
  38. {
  39.     friend CUsersDlgGeneral;
  40. // Konstruktion
  41. public:
  42.     CUsersDlg(CWnd* pParent, bool localConnection);   // Standardkonstruktor
  43.     ~CUsersDlg();
  44.     BOOL GetAsCommand(char **pBuffer, DWORD *nBufferLength);
  45.     BOOL Init(unsigned char *pData, DWORD dwDataLength);
  46.     t_user* GetCurrentUser();
  47.     bool IsLocalConnection() const { return m_localConnection; }
  48.  
  49. protected:
  50. // Dialogfelddaten
  51.     //{{AFX_DATA(CUsersDlg)
  52.     enum { IDD = IDD_USERS };
  53.     CListBox    m_cUserlist;
  54.     //}}AFX_DATA
  55.  
  56.  
  57. // ▄berschreibungen
  58.     // Vom Klassen-Assistenten generierte virtuelle Funktionsⁿberschreibungen
  59.     //{{AFX_VIRTUAL(CUsersDlg)
  60.     public:
  61.     virtual BOOL PreTranslateMessage(MSG* pMsg);
  62.     protected:
  63.     virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV-Unterstⁿtzung
  64.     //}}AFX_VIRTUAL
  65.  
  66. // Implementierung
  67. protected:
  68.  
  69.     CUsersDlgGeneral *m_pGeneralPage;
  70.     CUsersDlgSpeedLimit *m_pSpeedLimitPage;
  71.     CUsersDlgSharedFolders *m_pSharedFoldersPage;
  72.     CUsersDlgIpFilter *m_pIpFilterPage;
  73.  
  74.     void SetCtrlState();
  75.     int m_olduser;
  76.     BOOL Validate();
  77.     
  78.     typedef std::vector<t_group> t_GroupsList; 
  79.     typedef std::vector<t_user> t_UsersList; 
  80.     t_GroupsList m_GroupsList;
  81.     t_UsersList m_UsersList;
  82.     bool m_localConnection;
  83.     bool m_insideSelchange;
  84.  
  85.     // Generierte Nachrichtenzuordnungsfunktionen
  86.     //{{AFX_MSG(CUsersDlg)
  87.     virtual BOOL OnInitDialog();
  88.     afx_msg void OnSelchangeUserlist();
  89.     virtual void OnOK();
  90.     afx_msg void OnContextMenu(CWnd* pWnd, CPoint point);
  91.     afx_msg void OnUsermenuAdd();
  92.     afx_msg void OnUsermenuCopy();
  93.     afx_msg void OnUsermenuRemove();
  94.     afx_msg void OnUsermenuRename();
  95.     afx_msg void OnUseradd();
  96.     afx_msg void OnUsercopy();
  97.     afx_msg void OnUserremove();
  98.     afx_msg void OnUserrename();
  99.     //}}AFX_MSG
  100.     DECLARE_MESSAGE_MAP()
  101. };
  102.  
  103. //{{AFX_INSERT_LOCATION}}
  104. // Microsoft Visual C++ fⁿgt unmittelbar vor der vorhergehenden Zeile zusΣtzliche Deklarationen ein.
  105.  
  106. #endif // AFX_USERSDLG_H__5348112C_F36E_42D1_B073_78272B897DDA__INCLUDED_
  107.